package cqrtplm.mapper;

import cqrtplm.entity.ProblemJurisdictionDO;
import cqrtplm.vo.IssueTypeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigInteger;
import java.util.List;

/**
 * @Author：lotus
 * @DATE: 2025/7/26 16:48
 */

@Mapper
public interface ProblemJurisdictionMapper {

    List<ProblemJurisdictionDO> queryProblemJurisdictionByUid(@Param("uid") BigInteger uid);

    List<ProblemJurisdictionDO> queryProblemJurisdictionAll();

    void deleteProblemJurisdictionByOid(@Param("oid") String oid);

    void insertProblemJurisdiction(@Param("pro")ProblemJurisdictionDO problemJurisdictionDO);

    void updateProblemJurisdiction(@Param("pro")ProblemJurisdictionDO problemJurisdictionDO);

    List<IssueTypeVO> selectIssueType(String issueTypeOid);

    @Select("select OID from TY_CHANGEISSUE WHERE TYPEOID=#{oid}")
    List<BigInteger> selectChangeIssue(BigInteger oid);

}
